home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 September / CHIP Eylül 1998.iso / Slackwar / docs / mini / StarOffice < prev    next >
Text File  |  1997-01-29  |  11KB  |  306 lines

  1.   StarOffice for Linux mini-Howto
  2.   Matthew Borowski (mkb@poboxes.com )
  3.   Version 0.9, January 14, 1998
  4.  
  5.   Information on installing the StarOffice Office Suite by StarDivision
  6.   GmbH.
  7.  
  8.   1.  Introduction
  9.  
  10.   The StarOffice Office Suite is a collection of office tools for Linux,
  11.   written in C using the Motif toolkit.
  12.  
  13.   StarOffice includes:
  14.  
  15.   ╖  StarWriter, a word processor
  16.  
  17.   ╖  StarCalc, a spreadsheet
  18.  
  19.   ╖  StarImage, an image editor
  20.  
  21.   ╖  StarDraw, a draw program similar to Corel DRAW
  22.  
  23.   ╖  StarChart, a chart-making program
  24.  
  25.   ╖  StarMath, a math editor
  26.  
  27.   The StarOffice Office Suite for Linux is free for non-commercial use.
  28.   Commercial use requires a license. The cost for a commercial license
  29.   seperate from Caldera's OpenLinux system is currently undecided.
  30.  
  31.   1.1.  Motif info
  32.  
  33.   StarOffice is written using the commercial Motif 2.0 GUI toolkit. The
  34.   dynamically linked version will *not* work with Motif 1.2/LessTif.
  35.  
  36.   The static version (with Motif 2.0 linked in) will work regardless of
  37.   whether or not you have Motif. However, performance drops.
  38.  
  39.   I run StarOffice on a Pentium 100 with 48 megs RAM, running Redhat 4.1
  40.   and Motif 2.0. Dynamically linked StarOffice takes about a minute to
  41.   load. However, it is noticable that, once it loads up, StarOffice
  42.   dynamically linked takes up much less resources than the static
  43.   version.
  44.  
  45.   1.2.  History of this document
  46.  
  47.   ╖  Version 0.8 971109 - added tips, installation w/o libc upgrade,
  48.      etc.
  49.  
  50.   ╖  Version 0.7 970707 - changed section 3.1.1, changed license
  51.  
  52.   ╖  Version 0.6 970609 - added fix for the LANG variable problem
  53.  
  54.   ╖  Version 0.5 970608 - updated info to StarOffice 3.1 final
  55.  
  56.   ╖  Version 0.1 970505 - the initial release.
  57.  
  58.   2.  Obtaining the StarOffice Office Suite
  59.  
  60.   The current release of StarOffice for Linux is 3.1 final. This release
  61.   is available for FTP at
  62.  
  63.   ftp://ftp.gwdg.de/pub/linux/staroffice
  64.  
  65.   The file README.StarOffice contains information on downloading
  66.   StarOffice 3.1 final. You will need to get three files:
  67.  
  68.   ╖  StarOffice31-english.tar.gz (english) templates/demo docs or
  69.  
  70.   ╖  StarOffice31-german.tar.gz (german) templates/demo docs
  71.  
  72.   ╖  StarOffice31-dynbin.tar.tgz (dynamically linked) or
  73.  
  74.   ╖  StarOffice31-statbin.tar.gz (statically linked) binaries
  75.  
  76.   ╖  StarOffice31-common.tar.gz
  77.  
  78.   There is also version of StarOffice, available from Caldera. Check
  79.   their website at
  80.  
  81.        http://www.caldera.com
  82.  
  83.   for details on this. Caldera also makes a StarOffice CD-ROM available
  84.   for $ 7.99 US.
  85.  
  86.   3.  Installation of StarOffice
  87.  
  88.   Installation of StarOffice consists of:
  89.  
  90.   ╖  Untarring the distribution files as root in /usr/local
  91.  
  92.   ╖  running the setup program as a user
  93.  
  94.   ╖  sourcing the .sd.sh or .sd.csh
  95.  
  96.   ╖  reading section 3.5!!! (do this)
  97.  
  98.   3.1.  Libc Issues and Fixes
  99.  
  100.   StarOffice is linked with libc 5.4.4.
  101.  
  102.   StarOffice 3.1 *will* work on Libc 5.3.x. Unfortunately, the setup
  103.   program requires 5.4.4 or higher. If you have libc 5.3.x, you might be
  104.   able to get around this by acquiring a copy of libc 5.4.4+ and adding
  105.   it to your LD_LIBRARY_PATH environment variable before executing the
  106.   setup script. I haven't tried this, however, so you're on your own.
  107.  
  108.   If you attempt to run the setup script on a libc older than 5.4.4, you
  109.   will get the following error message:
  110.  
  111.        line 1: Syntax error at token 'I' expected declarator; i.e. File ...
  112.  
  113.   To upgrade your libc, FTP to sunsite.unc.edu and look in the directory
  114.   /pub/Linux/GCC for the file libc-5.4.33.bin.tar.gz (or whatever the
  115.   latest libc is). Extract the contents of this file in a temporary
  116.   directory. A new lib/ directory will be created. Su to root and copy
  117.   the file libc.so.5.4.33 from this directory to your /lib directory.
  118.   Now, make the symlink from libc.so.5 to libc.5.4.33 with the command:
  119.  
  120.   ln -sf /lib/libc.so.5.4.33 /lib/libc.so.5
  121.  
  122.   then run the ldconfig command.
  123.  
  124.   Dr. Romano Giannetti (romano@iet.unipi.it ) says:
  125.  
  126.        a redhat 4.2 system which has a libc5.3, without doing the
  127.        upgrade.
  128.  
  129.        The exact steps are:
  130.  
  131.        1. get a libc.so.5.4.x. If you have a redhat rpm package (as
  132.        the one you find in the contrib directory), you can extract
  133.        the library by going in a scratch directory and doing:
  134.        rpm2cpio libc.so.5.4.x-y.rpm | cpio --extract --make-
  135.        directories The library will appear in ./lib subdirectory
  136.  
  137.        2. move libc.so.5.4.x in your home directory. Then (assuming
  138.        a sh-like shell): ln -s libc.so.5.4.x libc.so.5 export
  139.        LD_LIBRARY_PATH=$HOME:/lib:/usr/lib
  140.  
  141.        3. Now you can run setup.
  142.  
  143.   3.2.  Installing the tar Files
  144.  
  145.   After downloading StarOffice, su or login as root and place the
  146.   archives in /usr/local/. Change directory to /usr/local/ and extract
  147.   the files. An example command to decompress a gzipped tar file would
  148.   be:
  149.  
  150.        tar -xzvf filename.tar
  151.  
  152.   Older systems may require you first use the gzip -d command to unzip
  153.   the file, then use the tar -xvf command to untar it.
  154.  
  155.   The files will extract to their locations within the newly created
  156.   usr/local/StarOffice-3.1 tree.
  157.  
  158.   3.3.  Setup und Configuration
  159.  
  160.   After you have extracted the StarOffice files as root, you will need
  161.   to login with your userid. Change directory to
  162.   /usr/local/StarOffice-3.1 and execute the setup program. This program
  163.   will install non-shared files and symlinks needed for each individual
  164.   user. The standard installation is recommended. There *could* be
  165.   problems if you do not accept the default installation path.
  166.  
  167.   StarOffice makes use of environment variables. The files .sd.sh
  168.   (formatted for the Bourne Shell) and .sd.csh (formatted for the C
  169.   Shell) provide the environment variable settings for StarOffice. These
  170.   files are located in your home directory.
  171.  
  172.   If you use bash, edit your .bashrc and add the line:
  173.  
  174.   source  /.sd.sh
  175.  
  176.   After doing this, restart bash to bring the environment variables into
  177.   effect.
  178.  
  179.   If you use a different shell, consult that shell's man page for
  180.   information on sourcing a file.
  181.  
  182.   3.4.  COL (Caldera OpenLinux) setup bug
  183.  
  184.   Phil Reardon (pcr@busprod.com ) says:
  185.  
  186.        " I found a bug in the setup script for StarOffice that came
  187.        with my Caldera COL standard release. It produces // in a
  188.        path where there should only be one /. To fix it, remove the
  189.        first slash from this line:
  190.  
  191.        exec ${pfad:='.'}/linux-x86/bin/$name;;
  192.  
  193.   There should be no / before linux-x86."
  194.  
  195.   3.5.  Fixing the LANG variable problem
  196.  
  197.   The .sd.sh and .sd.csh files set the LANG variable. This causes
  198.   problems with perl and man. Man will give the error message
  199.  
  200.        " Failed to open the message catalog man on the path
  201.        NLSPATH="
  202.  
  203.   Perl will give the error message
  204.  
  205.        " warning: setlocale(LC_CTYPE, "")..."
  206.  
  207.   The .sd.sh file contains a line that sets LANG=us and another that
  208.   exports a bunch of variables, including LANG. Remove the LANG=us line
  209.   and remove LANG from the list of variables, and this will be fixed.
  210.  
  211.   In the .sd.csh file (which is formatted for the c shell), you need to
  212.   remove the line that says "setenv LANG us".
  213.  
  214.   Thanks to Adam L. Klein (alklein@adelphia.net) for informing me of
  215.   this fix.
  216.  
  217.   4.  Running StarOffice
  218.  
  219.   The StarOffice binaries are located in the directory:
  220.   /usr/local/StarOffice-3.1/linux-x86/bin/
  221.  
  222.   The applications are: sdraw3, swriter3, scalc3, smath3, schart3,
  223.   simage3
  224.  
  225.   The program svdaemon must be executed in order to use online help.
  226.   The program svportmap must be executed to enable application
  227.   communication features between StarWriter, StarCalc and StarDraw.
  228.  
  229.   5.  StarOffice Tips
  230.  
  231.   Contributed by Patrick D'Cruze (pdcruze@netpal.com.au)
  232.  
  233.   1.  Instead of sourcing the .sd.sh (or .sd.csh) file in my
  234.   .bash_profile script, I instead copied the .sd.sh script,  renamed it
  235.   to swriter and copied it to /usr/local/bin.  I then modified it by
  236.   adding a:
  237.  
  238.        #! /bin/bash
  239.  
  240.   at the start of the script and a:
  241.  
  242.        exec swriter3 $*
  243.  
  244.   at the end of the script.  Now all I have to do is run swriter and it
  245.   automatically sets up the appropriate environment variables and then
  246.   runs StarWriter. Saves having those environment variables pollute
  247.   other applications/environments.
  248.  
  249.   2.  I noticed that for a lot of people, StarOffice takes quite a while
  250.   to load (upwards of 60 seconds).  The consensus on usenet was that a
  251.   large chunk of this time was due to the symbol relocations that the
  252.   dynamic linker has to do. ie, for each new symbol the dynamic linker
  253.   has to locate the appropriate library.  StarOffice dynamically links
  254.   against quite a few libraries so the dynamic linker spends quite a bit
  255.   of time searching through lots of libraries.
  256.  
  257.   There is a solution to this. I run StarOffice in a chroot'd jail.  In
  258.   the jail, I just put the binaries and libraries that StarOffice uses
  259.   (all the libs out of /usr/X11R6/lib, libc/libm and libg++/libstdc++).
  260.   StarWriter takes approximately 15 seconds to come up on my P133/32MB.
  261.   This is due to the fact that the only libraries present are the ones
  262.   needed by StarOffice and hence the dynamic linker spends
  263.   proportionately less time searching through all the libraries on the
  264.   system (ie, it doesn't search through all the useless libs in /usr/lib
  265.   etc looking to resolve symbols).
  266.  
  267.   6.  More Information
  268.  
  269.   More information on StarOffice for Linux is available directly from
  270.   StarDivision. StarDivision maintains a website at
  271.   http://www.stardivision.com
  272.  
  273.   StarDivision runs a news server with support and user groups related
  274.   to StarOffice for linux. These newsgroups are the best place to find
  275.   up-to-date information on StarOffice and to ask for help. Using a
  276.   newsreader, connect to news://starnews.stardivision.com or follow the
  277.   support link on the StarDivision homepage.
  278.  
  279.   7.  Contributions
  280.  
  281.   Thank you to Werner Klaus (wklaus@metronet.de ) for translating this
  282.   document to sgml.
  283.  
  284.   If you can contribute any additional information for this mini-HOWTO,
  285.   please contact me via internet e-mail. My address is located at the
  286.   top of this document. You may also wish to take a look at my web page,
  287.   located at http://mkb.home.ml.org/linux/ or
  288.   http://www.gslink.com/~mkb/linux/
  289.  
  290.   8.  Disclaimer and Copyright
  291.  
  292.   This document is (C) 1997 by Matthew Borowski.
  293.  
  294.   Redistribution of this document in electronic form is permitted under
  295.   the condition that the document remains unchanged. If you wish to
  296.   include this document in a CD-ROM or book, please obtain permission
  297.   from me beforehand (I prefer requests to be sent via e-mail).
  298.  
  299.   The author claims no responsibility in anything that may occur
  300.   directly or indirectly as a result of using this document. The author
  301.   is not an employee of StarDivision, GmbH or Caldera, Inc.
  302.  
  303.   Comments and questions may be directed to the author at
  304.   mkb@poboxes.com.
  305.  
  306.